package com.company.practice;

import cn.hutool.core.io.FileUtil;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;

/**
 * @description: some desc
 * @author: ruoan
 * @date: 2020/12/28 21:36
 */
public class Test21 {
    public static void main(String[] args) {

        //hashcode相等 ！=  equals
        String str1 = "通话";
        String str2 = "重地";
        System.out.println(String.format("str1：%d | str2：%d",  str1.hashCode(),str2.hashCode()));
        System.out.println(str1.equals(str2));
        boolean exist = FileUtil.exist("g:\\");
        long size = FileUtil.size(new File("d:\\workspace99\\"));
        System.out.println(size+" ");
        System.out.println(exist);


    }



}


abstract class Cat {
    public static void sayHi() {
        System.out.println("hi~");
    }
}
